#!/bin/sh
 set -x

DOMAIN="atzlinux.com"
#NS="f1g1ns1.dnspod.net"
NS="f1g1ns2.dnspod.net"
NODEDOMAIN="sc-bz-lt-apt"

#host sc-bz-lt-apt.atzlinux.com f1g1ns2.dnspod.net|grep address|awk -F address {'print $2'}|sed s/\ //g
NSIP=`host $NODEDOMAIN.$DOMAIN $NS|grep address|awk -F address {'print $2'}|sed s/\ //g`
echo $NSIP
